{include file="public/header" title="后台管理系统"}
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="">
            <div class="form-group">
                <div class="label">
                    <label>名称：</label>
                </div>
                <div class="field">
                    <input type="text" value="{$value.title}" class="input w50" name="aname" id="tname" />
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>权限：</label>
                </div>
                <div class="field">
                    {volist name='list' id='v'}
                    <input {if in_array($v.id,$value.rules)}checked{/if} type="checkbox" name="auths[]" value="{$v.id}" /> {$v.title}

                    {$i%5==0?'<br>':''}&nbsp;
                    {/volist}
                    &nbsp;
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>备注：</label>
                </div>
                <div class="field">
                    <textarea name="remark" class="input" style="height:120px;"></textarea>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <input type="hidden" name="action" value="add">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>